var e = require("../../api.js"), a = getApp(), t = require("../../wxParse/wxParse.js");

Page({
    data: {},
    onLoad: function(s) {
        var n = this;
        a.request({
            url: e.article.getRules,
            method: "post",
            data: {
                type: 7
            },
            success: function(e) {
                1 === e.code && (n.setData({
                    info: e.data
                }), t.wxParse("article", "html", e.data.content, n, 7));
            }
        }), s.uid && a.shareCouponsMessage(s.uid);
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {
        return {
            title: a.shareAppMessage().title,
            imageUrl: a.shareAppMessage().imageUrl,
            desc: a.shareAppMessage().desc,
            path: a.shareAppMessage().path
        };
    }
});